
//bill模块的数据仓库
import {reqGetBill} from "@/api";

const state={
    billList: [],
};
const mutations={
    BILLLIST(state,billList){
        state.billList=billList;
    }
};
const actions={
    billList({commit},params={}){
        reqGetBill(params).then(res=>{
            if (res.data.code==200){
                commit('BILLLIST',res.data.data)
            }

        })
    }


};
const getters={

};

export default {
    state,
    mutations,
    actions,
    getters
}